package com.feixiang.service;

import java.util.ArrayList;
import java.util.List;

import com.feixiang.bean.Permission;
import com.feixiang.bean.Role;

public class PermissionService {
	public List<String> getPermissionStrings(Role role){
		List<String> permissionStrings = new ArrayList<String>();
		for(Permission p : role.getPermissions()){
			permissionStrings.add(p.getPermission());
		}
		return permissionStrings;
	}
}
